<template>
  <div id="app">
    <div class="main">
      <!-- <router-view /> -->
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive" />
      </keep-alive>
      <router-view v-if="!$route.meta.keepAlive" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>
<style>
.main{
  height:100%;         /*必须要加*/
 }
</style>
